xen/vm_event: Relocate memop checks
authorTamas K Lengyel <tamas.lengyel@zentific.com>
Thu, 9 Apr 2015 14:32:51 +0000 (16:32 +0200)
committerTim Deegan <tim@xen.org>
Thu, 16 Apr 2015 08:42:38 +0000 (09:42 +0100)
commit69c46420c7f8165c6aaaf01a3c80bf1d9d02dafe
tree292de916faae8c34d1cf9d2719d5a68ef18c6036
parentadeb3124a26a48abd1452495da5ce0e2a22a00b8
xen/vm_event: Relocate memop checks

The memop handler function for paging/sharing responsible for calling XSM
doesn't really have anything to do with vm_event, thus in this patch we
relocate it into mem_paging_memop and mem_sharing_memop. This has already
been the approach in mem_access_memop, so in this patch we just make it
consistent.

Signed-off-by: Tamas K Lengyel <tamas.lengyel@zentific.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/mem_paging.c
xen/arch/x86/mm/mem_sharing.c
xen/arch/x86/x86_64/compat/mm.c
xen/arch/x86/x86_64/mm.c
xen/common/vm_event.c
xen/include/asm-x86/mem_paging.h
xen/include/asm-x86/mem_sharing.h
xen/include/xen/vm_event.h